class Docker:
    # 定义Docker类，用于表示一个具有基本信息的个体
    name = None  # 姓名
    age = None  # 年龄
    job = None  # 职业
    gender = None  # 性别
    salary = None  # 工资

    def __init__(self, name, age, job, gender, salary):
        # 初始化方法，用于创建Docker类的实例
        # 参数:
        # name: 姓名
        # age: 年龄
        # job: 职业
        # gender: 性别
        # salary: 工资
        self.name = name
        self.age = age
        self.job = job
        self.gender = gender
        self.salary = salary

    def __eq__(self, other):
        # 判断两个Docker实例是否相等的方法
        # 参数:
        # other: 另一个要比较的Docker实例
        # 返回值:
        # 如果两个实例的所有属性都相等，则返回True，否则返回False
        if not isinstance(other, Docker):
            # 确保比较的对象是Docker类的实例
            return False
        return self.name == other.name and self.age == other.age and self.job == other.job and self.gender == other.gender and self.salary == other.salary

# 创建两个Docker实例，他们的属性值都相同
docker1 = Docker("docker", 18, "docker", "男", 10000)
docker2 = Docker("docker", 18, "docker", "男", 10000)

# 比较两个实例是否相等，预期输出为True
print(docker1 == docker2)
